package com.ly.mpayment.persist.entity.yidong;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "game_order")
public class GameOrder {


	private String gameId;
	private String mobileOrdersId;
	private String orderId;
	private Date orderTime;
	private BigDecimal orderAmount;
	private String remark;
	private int orderState;
	private Date payTime;
	private Date  rechargeTime;
	private String callback;
	private String type;
	private String userId;

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "game_id", unique = true, nullable = false, length = 36)
	public String getGameId() {
		return gameId;
	}
	public void setGameId(String gameId) {
		this.gameId = gameId;
	}

	@Column(name="mobile_orders_id")
	public String getMobileOrdersId() {
		return mobileOrdersId;
	}
	public void setMobileOrdersId(String mobileOrdersId) {
		this.mobileOrdersId = mobileOrdersId;
	}

	@Column(name="order_id")
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	@Column(name="order_time")
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	@Column(name="order_amount")
	public BigDecimal getOrderAmount() {
		return orderAmount;
	}
	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}

	@Column(name="remark")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name="order_state")
	public int getOrderState() {
		return orderState;
	}
	public void setOrderState(int orderState) {
		this.orderState = orderState;
	}

	@Column(name="pay_time")
	public Date getPayTime() {
		return payTime;
	}
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	@Column(name="recharge_time")
	public Date getRechargeTime() {
		return rechargeTime;
	}
	public void setRechargeTime(Date rechargeTime) {
		this.rechargeTime = rechargeTime;
	}

	@Column(name="callback")
	public String getCallback() {
		return callback;
	}


	public void setCallback(String callback) {
		this.callback = callback;
	}

	@Column(name="type")
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

	@Column(name="user_id")
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "GameOrder [gameId=" + gameId + ", mobileOrdersId=" + mobileOrdersId + ", orderId=" + orderId
				+ ", orderTime=" + orderTime + ", orderAmount=" + orderAmount + ", remark=" + remark + ", orderState="
				+ orderState + ", payTime=" + payTime + ", rechargeTime=" + rechargeTime + ", callback=" + callback
				+ "]";
	}



}
